package net.sf.ghost4j.extensions;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Options implements Serializable {

	public Options() {
	}

	private List<String> options;

	public Options addOption(String option) {
		getOptions().add(option);
		return this;
	}

	public List<String> getOptions() {
		if (this.options == null)
			this.options = new ArrayList<String>();
		return options;
	}

	public void setOptions(List<String> options) {
		this.options = options;
	}

	public String[] toGsOptions() {
		String[] gsOptions = new String[] {};
		return this.options.toArray(gsOptions);
	}
}
